package com.demo.user.vo;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 用户
 * @TableName bl_user
 */
@Data
public class UserVo implements Serializable {
    /**
     * 用户ID
     */
    private Integer uid;

    /**
     * 站点ID
     */
    private Integer sid;

    /**
     * 类型 1学员 2导师 3管理员 5投资人
     */
    private Integer type;

    /**
     * 角色ID
     */
    private Integer roleId;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 姓名
     */
    private String name;

    /**
     * 学号/工号
     */
    private String username;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 性别 1男 2女
     */
    private Integer sex;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 删除状态 0正常 1删除
     */
    private Integer deleteStatus;

    /**
     * 加密干扰字符串
     */
    private String salt;

    /**
     * 密文密码
     */
    private String password;

    /**
     * 明文密码
     */
    private String showPwd;

    /**
     * 是否默认密码 1是 2否
     */
    private Integer defaultPassword;

    /**
     * pc登录标识
     */
    private String accessToken;

    /**
     * 移动端登录标识
     */
    private String mobileAccessToken;

    /**
     * 管理后台登录标识
     */
    private String adminAccessToken;

    /**
     * 省编码
     */
    private String provinceCode;

    /**
     * 市编码
     */
    private String cityCode;

    /**
     * 区编码
     */
    private String areaCode;

    /**
     * 注册IP
     */
    private String regIp;

    /**
     * 注册时间
     */
    private Date regTime;

    /**
     * 钉钉通讯录同步 0否 1是
     */
    private Integer dingStatus;

    /**
     * 钉子部门ID
     */
    private Integer sonDepartmentId;

    /**
     * 单点登录退出凭证
     */
    private String ssoLoginoutId;

    /**
     * 单点登录登入凭证
     */
    private String ssoLoginId;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 
     */
    private String verificationToken;

    /**
     * 源院校站点ID
     */
    private Integer originSid;

    /**
     * 源表主键ID
     */
    private Integer originId;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserVo other = (UserVo) that;
        return (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getRoleId() == null ? other.getRoleId() == null : this.getRoleId().equals(other.getRoleId()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getAvatar() == null ? other.getAvatar() == null : this.getAvatar().equals(other.getAvatar()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDeleteStatus() == null ? other.getDeleteStatus() == null : this.getDeleteStatus().equals(other.getDeleteStatus()))
            && (this.getSalt() == null ? other.getSalt() == null : this.getSalt().equals(other.getSalt()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getShowPwd() == null ? other.getShowPwd() == null : this.getShowPwd().equals(other.getShowPwd()))
            && (this.getDefaultPassword() == null ? other.getDefaultPassword() == null : this.getDefaultPassword().equals(other.getDefaultPassword()))
            && (this.getAccessToken() == null ? other.getAccessToken() == null : this.getAccessToken().equals(other.getAccessToken()))
            && (this.getMobileAccessToken() == null ? other.getMobileAccessToken() == null : this.getMobileAccessToken().equals(other.getMobileAccessToken()))
            && (this.getAdminAccessToken() == null ? other.getAdminAccessToken() == null : this.getAdminAccessToken().equals(other.getAdminAccessToken()))
            && (this.getProvinceCode() == null ? other.getProvinceCode() == null : this.getProvinceCode().equals(other.getProvinceCode()))
            && (this.getCityCode() == null ? other.getCityCode() == null : this.getCityCode().equals(other.getCityCode()))
            && (this.getAreaCode() == null ? other.getAreaCode() == null : this.getAreaCode().equals(other.getAreaCode()))
            && (this.getRegIp() == null ? other.getRegIp() == null : this.getRegIp().equals(other.getRegIp()))
            && (this.getRegTime() == null ? other.getRegTime() == null : this.getRegTime().equals(other.getRegTime()))
            && (this.getDingStatus() == null ? other.getDingStatus() == null : this.getDingStatus().equals(other.getDingStatus()))
            && (this.getSonDepartmentId() == null ? other.getSonDepartmentId() == null : this.getSonDepartmentId().equals(other.getSonDepartmentId()))
            && (this.getSsoLoginoutId() == null ? other.getSsoLoginoutId() == null : this.getSsoLoginoutId().equals(other.getSsoLoginoutId()))
            && (this.getSsoLoginId() == null ? other.getSsoLoginId() == null : this.getSsoLoginId().equals(other.getSsoLoginId()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getVerificationToken() == null ? other.getVerificationToken() == null : this.getVerificationToken().equals(other.getVerificationToken()))
            && (this.getOriginSid() == null ? other.getOriginSid() == null : this.getOriginSid().equals(other.getOriginSid()))
            && (this.getOriginId() == null ? other.getOriginId() == null : this.getOriginId().equals(other.getOriginId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getAvatar() == null) ? 0 : getAvatar().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDeleteStatus() == null) ? 0 : getDeleteStatus().hashCode());
        result = prime * result + ((getSalt() == null) ? 0 : getSalt().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getShowPwd() == null) ? 0 : getShowPwd().hashCode());
        result = prime * result + ((getDefaultPassword() == null) ? 0 : getDefaultPassword().hashCode());
        result = prime * result + ((getAccessToken() == null) ? 0 : getAccessToken().hashCode());
        result = prime * result + ((getMobileAccessToken() == null) ? 0 : getMobileAccessToken().hashCode());
        result = prime * result + ((getAdminAccessToken() == null) ? 0 : getAdminAccessToken().hashCode());
        result = prime * result + ((getProvinceCode() == null) ? 0 : getProvinceCode().hashCode());
        result = prime * result + ((getCityCode() == null) ? 0 : getCityCode().hashCode());
        result = prime * result + ((getAreaCode() == null) ? 0 : getAreaCode().hashCode());
        result = prime * result + ((getRegIp() == null) ? 0 : getRegIp().hashCode());
        result = prime * result + ((getRegTime() == null) ? 0 : getRegTime().hashCode());
        result = prime * result + ((getDingStatus() == null) ? 0 : getDingStatus().hashCode());
        result = prime * result + ((getSonDepartmentId() == null) ? 0 : getSonDepartmentId().hashCode());
        result = prime * result + ((getSsoLoginoutId() == null) ? 0 : getSsoLoginoutId().hashCode());
        result = prime * result + ((getSsoLoginId() == null) ? 0 : getSsoLoginId().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getVerificationToken() == null) ? 0 : getVerificationToken().hashCode());
        result = prime * result + ((getOriginSid() == null) ? 0 : getOriginSid().hashCode());
        result = prime * result + ((getOriginId() == null) ? 0 : getOriginId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uid=").append(uid);
        sb.append(", sid=").append(sid);
        sb.append(", type=").append(type);
        sb.append(", roleId=").append(roleId);
        sb.append(", mobile=").append(mobile);
        sb.append(", name=").append(name);
        sb.append(", username=").append(username);
        sb.append(", avatar=").append(avatar);
        sb.append(", email=").append(email);
        sb.append(", sex=").append(sex);
        sb.append(", status=").append(status);
        sb.append(", deleteStatus=").append(deleteStatus);
        sb.append(", salt=").append(salt);
        sb.append(", password=").append(password);
        sb.append(", showPwd=").append(showPwd);
        sb.append(", defaultPassword=").append(defaultPassword);
        sb.append(", accessToken=").append(accessToken);
        sb.append(", mobileAccessToken=").append(mobileAccessToken);
        sb.append(", adminAccessToken=").append(adminAccessToken);
        sb.append(", provinceCode=").append(provinceCode);
        sb.append(", cityCode=").append(cityCode);
        sb.append(", areaCode=").append(areaCode);
        sb.append(", regIp=").append(regIp);
        sb.append(", regTime=").append(regTime);
        sb.append(", dingStatus=").append(dingStatus);
        sb.append(", sonDepartmentId=").append(sonDepartmentId);
        sb.append(", ssoLoginoutId=").append(ssoLoginoutId);
        sb.append(", ssoLoginId=").append(ssoLoginId);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", verificationToken=").append(verificationToken);
        sb.append(", originSid=").append(originSid);
        sb.append(", originId=").append(originId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}